package com.group.three.service.Impl;

import com.github.pagehelper.PageHelper;
import com.group.three.entity.Receipt;
import com.group.three.mapper.ReceiptMapper;
import com.group.three.service.ReceiptService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ReceiptServiceImpl implements ReceiptService {
    @Autowired
    private ReceiptMapper receiptMapper;

    @Override
    public List<Receipt> judgment(String id, int pageNum, int pageSize) {
        PageHelper.startPage(pageNum, pageSize);
        return receiptMapper.judgment(id, pageNum, pageSize);
    }
}
